home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
001-025
/
scopedisk6
/
arexx
/
arexx1
/
touch.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-18
|
361b
|
16 lines
/* touch -- set the date or time of a file. Calls setdate. If the file does
not exist, creates it as an empty file */
parse arg x
if index(x,'*') >0 | index(x,'#?') >0 | index(x,'?') >0 | index(x,'|') >0 then
do
setdate x
end
else
if exists(word(x,1)) then setdate x
else
do
scratch = open(dummy,x,'w')
scratch = close(dummy)
setdate x
end